﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using zic_dotnet.Domain;

namespace stackFluent.Domain {
    public class Site : IAggregateRoot {
        [Key]
        public Guid ID { get; set; }
        public int ActId { get; set; }
        public DateTime DateCreated { get; set; }

        [Required]
        [MaxLength(50)]
        public string Name { get; set; }

        [MaxLength(150)]
        public string HomePage { get; set; }
        [MaxLength(500)]
        public string Links { get; set; }

        [Timestamp]
        public Byte[] Timestamp { get; set; }

        //关注它的users，与User表多对多关系
        public virtual ICollection<RelaUserSite> InteredUsers { get; set; }
        public virtual ICollection<RelaTechSite> RelaTechs { get; set; }

    }
}
